package com.qingke.test7;

public class Test {

	public static void main(String[] args) {
//		内部类的调用：创建内部类实例对象
		Car.Battery cb = new Car().new Battery();
		
		Car c = new Car("宝马", "X6", cb);
		for (int i = 0;i < 1000;i++) {
			c.start();
			System.out.println("剩余电量:"+c.getBat().getPower());
		}
	}

}
